<% @member = current_accounts.member if @member.nil? %>
<div id="sub_nav_box">
  <% if params[:action] != "profile" && params[:action] != "space" %>
    <div class="user_img">
      <%= link_to (image_tag member_small_avatar_url(@member), :alt => "#{@member[:nick]}",:width => 200, :height => 200), "/home/space/#{@member}",:class=>"user_img_3" %>
    </div>
  <% end %>
  <div id="sub_nav" class="bor_4 sub_nav">
    <div class="title" id="user_nav">
      <h1><%= online? @member%> <a href="#" class="c_1"><%= @member[:nick] %></a></h1>
      <p class="icon">
        {state2_icon}
        {state3_icon}
        <a href="javascript:goURL('qzone','{uin}')"><%= image_tag "icon.gif", :alt => "QQ空间", :class => "icon_qzone" %></a>
        <span>住在{city_chn}，{title_chn}</span>
      </p>
    </div>
    <div id="user_nav_tpl">
      <ul class="list">
        <input type="hidden" id="user-nav-id" value="<%= params[:action] %>"/>
        <% if current? @member %>
        <li><span id="user_nav_profile" class="bor_r_2"><%= link_to '主页', "/home/profile" %></span></li>
        <li><span id="user_nav_edit" class="bor_r_2"><%= link_to '资料', edit_member_path(current_accounts.member) %></span></li>
        <% else %>
        <li><span id="user_nav_edit" class="bor_r_2"><%= link_to '主页', "/home/space/#{@member[:id]}" %></span></li>
        <li><span id="user_nav_edit" class="bor_r_2"><%= link_to '资料', member_path(@member) %></span></li>
        <% end %>
        <li><span id="user_nav_photo"class="bor_r_2"><%= link_to '相册', member_albums_path(@member) %></span></li>
        <li><span class="bor_r_2"><%= link_to '日志', member_blogs_path(@member)%></span></li>
        <li><span class="bor_r_2"><%= link_to '好友', friendship_path(@member)%></span></li>
        <li><span class="bor_r_2"><a href="#">我的组</a></span></li>
        <li><span class="bor_r_2"><a href="#">我的活动</a></span></li>
        <li><span class="bor_r_2"><a href="#">运势</a></span></li>
        <li><span class="bor_r_2"><a href="#">礼物</a></span></li>
        <li><span class="bor_r_2"><a href="#">测试</a></span></li>
        <li class="more_tags"><span id="tag_app"><a href="#">更多<%=image_tag "icon.gif", :alt=>""%></a></span>
          <div class="more_tags" id="more_tags" style="display: none;">
            <div class="content bor_4 bg_1">
              <dl>
                <dd><a href="/user/slip.htm"><img src="images/icon.gif" alt="小纸条" class="icon_msg"/>小纸条</a></dd>
                <dd><a href="/user/msg.htm"><img src="images/icon.gif" alt="留言板" class="icon_msg_board"/>留言板</a></dd>
                <dd><a href="/user/pokelist.htm"><img src="images/icon.gif" alt="打招呼" class="icon_hi"/>打招呼</a></dd>
                <dd><a href="/user/match.htm"><img src="images/icon.gif" alt="八字匹配" class="icon_luck"/>缘分匹配</a></dd>
                <dd><a href="/user/mpk.htm"><img src="images/icon.gif" alt="PK台" class="icon_pk"/>PK台</a></dd>
                <!--<dd><a href="/user/music.htm"><img src="images/icon.gif" alt="音乐盒" class="icon_musicbox" />音乐盒</a></dd>-->
              </dl>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</div>